﻿using OS.Common.Enums;

namespace OS.Common.Core
{
    public class AppConfig
    {
        /// <summary>
        /// 应用账号AppId
        /// </summary>
        public string AppId { get; set; }

        /// <summary>
        /// 应用账号AppSecret
        /// </summary>
        public string AppSecret { get; set; }

        /// <summary>
        /// 操作管理类型
        /// </summary>
        public AppOperateMode OperateMode { get; set; }

        /// <summary>
        /// 当 OperateMode = AppOperateMode.ByAgent 时,代理应用的账号AppId
        /// </summary>
        public string ByAppId { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public AppConfig()
        {

        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="appId">应用账号AppId</param>
        /// <param name="appSecret">应用账号AppSecret</param>
        public AppConfig(string appId, string appSecret)
        {
            AppId = appId;
            AppSecret = appSecret;
        }
    }
}